package com.init.iblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.init.iblog.domain.ResponseResult;
import com.init.iblog.domain.dto.BlogDto;
import com.init.iblog.domain.entity.Blog;

public interface BlogService extends IService<Blog> {
    ResponseResult hotBlogList();

    ResponseResult blogListPage(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getBlogDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult addArticle(BlogDto blogDto);

    ResponseResult getArticleListPage(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateArticle(BlogDto blogDto);

    ResponseResult deleteArticle(Long id);
}
